package Logic.EventSample.Goods.Gain;

import FrameWork.Event.Priority;
import FrameWork.Model.Player;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;

@Component
@Priority(order = Priority.MAX_PRIORITY)
public class DefaultGainGoodHandler implements GainGoodHandler{

    private Logger logger = Logger.getLogger(getClass());

    @Override
    public void onGainGood(Player player, int goodId, int count, GainSource source) {
        logger.debug("获得"+goodId+"共"+count+"件");
    }
}
